﻿<Window x:Class="InterfaceHommeMachine.DebutPartie"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Lancement du jeu Civil INSA tion..." Height="600" Width="600" WindowStartupLocation="CenterScreen" WindowStyle="SingleBorderWindow" Foreground="#FFF00000" Icon="/InterfaceHommeMachine;component/Images/chateau.png" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="467*" />
            <RowDefinition Height="15*" />
            <RowDefinition Height="79*" />
        </Grid.RowDefinitions>
        <StackPanel Margin="0,321,0,42" Grid.RowSpan="3">
            <Grid Name="carte">
                <Grid.RowDefinitions>
                    <RowDefinition Height="1*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width= "1*"  />
                    <ColumnDefinition Width="2*" />
                </Grid.ColumnDefinitions>
                <Label Content="Taille de la carte : " Height="37" Name="tailleCarteLab" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="61,0,198,0" FontSize="15" Grid.Column="1" />
                <GroupBox Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch" Margin="222,0,0,0" Name="groupBox1" VerticalAlignment="Center" BorderBrush="{x:Null}" Foreground="{x:Null}" BorderThickness="0"></GroupBox>
                <Label Content="Nombre de joueurs : " Height="37" Name="NbJoueursLab" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="6,0,30,0" FontSize="15" Width="157" />
                <ComboBox Height="23" HorizontalAlignment="Left" Margin="161,5,0,9" Name="nbJoueur" VerticalAlignment="Center" Width="32" SelectedIndex="0" SelectionChanged="NbJoueur_Changed">
                    <ComboBoxItem Content="2" IsEnabled="True" IsSelected="True" />
                    <ComboBoxItem Content="3" />
                    <ComboBoxItem Content="4" />
                </ComboBox>
                <Grid VerticalAlignment="Bottom" Margin="193,0,24,0" Height="37" Grid.Column="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*" />
                        <ColumnDefinition Width="1*" />
                    </Grid.ColumnDefinitions>
                    <RadioButton Grid.Row="0" Content="Grande" Name="grandeCarte" HorizontalAlignment="Center" Margin="0,0,0,0" VerticalAlignment="Center" FontSize="15" Height="24" Checked="checkTailleEtNombre" Grid.Column="1" />
                    <RadioButton Grid.Row="0" Content="Petite" Height="23" Name="petiteCarte" Margin="0,0,0,0" FontSize="15" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="True" Checked="checkTailleEtNombre" />
                </Grid>
            </Grid>
            <Grid Height="10" ></Grid>
            <Grid Name="Joueur1" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                </Grid.ColumnDefinitions>
                <Label Content="Joueur 1 :" Height="28" Name="Joueur1Lab" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="6,1,66,0" Width="72"  FontSize="15" />
                <TextBox HorizontalAlignment="Left" Margin="84,3,0,0" Name="NomJoueur1" VerticalAlignment="Top" MaxLength="15" Text="Joueur1" Width="150" IsEnabled="True" FontSize="15" Grid.ColumnSpan="2" />
                <Label Content="Civilisation : " Height="28" Name="Civ1Lab" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,1,79,0" Width="100"  FontSize="15" Grid.Column="1" Grid.ColumnSpan="2" />
                <ComboBox Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="112,6,0,4" Name="Civ1" VerticalAlignment="Center" Width="120" SelectedIndex="0" Grid.ColumnSpan="2">
                    <ComboBoxItem Content="INFO" IsEnabled="True" IsSelected="True" />
                    <ComboBoxItem Content="EII"  />
                    <ComboBoxItem Content="SRC" IsEnabled="True"/>
                    <ComboBoxItem Content="GCU" IsEnabled="True"/>
                    <ComboBoxItem Content="SGM" IsEnabled="True"/>
                    <ComboBoxItem Content="GMA" IsEnabled="True"/>
                    <ComboBoxItem Content="STPI" IsEnabled="True"/>
                </ComboBox>
            </Grid>
            <Grid Name="Joueur2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                </Grid.ColumnDefinitions>
                <Label Content="Joueur 2 :" Height="28" Name="Joueur2Lab" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="6,1,66,0" Width="72"  FontSize="15" />
                <TextBox HorizontalAlignment="Left" Margin="84,3,0,0" Name="NomJoueur2" VerticalAlignment="Top" MaxLength="15" Text="Joueur2" Width="150" IsEnabled="True" FontSize="15" Grid.ColumnSpan="2" />
                <Label Content="Civilisation : " Height="28" Name="Civ2Lab" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,1,79,0" Width="100"  FontSize="15" Grid.Column="1" Grid.ColumnSpan="2" />
                <ComboBox Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="112,6,0,4" Name="Civ2" VerticalAlignment="Center" Width="120" SelectedIndex="0" Grid.ColumnSpan="2">
                    <ComboBoxItem Content="INFO" IsEnabled="True" IsSelected="True" />
                    <ComboBoxItem Content="EII" />
                    <ComboBoxItem Content="SRC" IsEnabled="True"/>
                    <ComboBoxItem Content="GCU" IsEnabled="True"/>
                    <ComboBoxItem Content="SGM" IsEnabled="True"/>
                    <ComboBoxItem Content="GMA" IsEnabled="True"/>
                    <ComboBoxItem Content="STPI" IsEnabled="True"/>
                </ComboBox>
            </Grid>
            <Grid Name="Joueur3" Visibility="Hidden">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                </Grid.ColumnDefinitions>
                <Label Content="Joueur 3 :" Height="28" Name="Joueur3Lab" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="6,-1,66,0" Width="72"  FontSize="15" />
                <TextBox HorizontalAlignment="Left" Margin="84,3,0,0" Name="NomJoueur3" VerticalAlignment="Top" MaxLength="15" Text="Joueur3" Width="150" IsEnabled="True" FontSize="15" Grid.ColumnSpan="2" />
                <Label Content="Civilisation : " Height="28" Name="Civ3Lab" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,1,79,0" Width="100"  FontSize="15" Grid.Column="1" Grid.ColumnSpan="2" />
                <ComboBox Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="112,6,0,4" Name="Civ3" VerticalAlignment="Center" Width="120" SelectedIndex="0" Grid.ColumnSpan="2">
                    <ComboBoxItem Content="INFO" IsEnabled="True" IsSelected="True" />
                    <ComboBoxItem Content="EII" />
                    <ComboBoxItem Content="SRC" IsEnabled="True"/>
                    <ComboBoxItem Content="GCU" IsEnabled="True"/>
                    <ComboBoxItem Content="SGM" IsEnabled="True"/>
                    <ComboBoxItem Content="GMA" IsEnabled="True"/>
                    <ComboBoxItem Content="STPI" IsEnabled="True"/>
                </ComboBox>
            </Grid>
            <Grid Name="Joueur4" Visibility="Hidden">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                </Grid.ColumnDefinitions>
                <Label Content="Joueur 4 :" Height="28" Name="Joueur4Lab" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="6,-1,66,0" Width="72"  FontSize="15" />
                <TextBox HorizontalAlignment="Left" Margin="84,3,0,0" Name="NomJoueur4" VerticalAlignment="Top" MaxLength="15" Text="Joueur4" Width="150" IsEnabled="True" FontSize="15" Grid.ColumnSpan="2" />
                <Label Content="Civilisation : " Height="28" Name="Civ4Lab" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,1,79,0" Width="100"  FontSize="15" Grid.Column="1" Grid.ColumnSpan="2" />
                <ComboBox Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="112,4,0,6" Name="Civ4" VerticalAlignment="Center" Width="120" SelectedIndex="0" Grid.ColumnSpan="2">
                    <ComboBoxItem Content="INFO" IsEnabled="True" IsSelected="True" />
                    <ComboBoxItem Content="EII" />
                    <ComboBoxItem Content="SRC" IsEnabled="True"/>
                    <ComboBoxItem Content="GCU" IsEnabled="True"/>
                    <ComboBoxItem Content="SGM" IsEnabled="True"/>
                    <ComboBoxItem Content="GMA" IsEnabled="True"/>
                    <ComboBoxItem Content="STPI" IsEnabled="True"/>
                </ComboBox>
            </Grid>
        </StackPanel>
        <Grid Name="Bouton" Grid.Row="2" Margin="0,37,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="3*" />
                <ColumnDefinition Width="2*" />
                <ColumnDefinition Width="3*" />
            </Grid.ColumnDefinitions>

            <Button Content="Charger une partie" Grid.Column="0" Height="30" HorizontalAlignment="Stretch" Margin="10,6,0,6" Name="Charger" VerticalAlignment="Center"  Width="120" IsEnabled="True" Click="buttonCharger_Click"/>
            <Button Content="Nouveau Jeu" Grid.Column="1" Height="30" HorizontalAlignment="Stretch" Margin="10,6,0,6" Name="Ok" VerticalAlignment="Center"  Width="120" Click="Ok_Click" />
            <Button Content="Quitter" Grid.Column="2" Height="30" Width="120" HorizontalAlignment="Stretch" Margin="10,6,0,6" Name="Annuler" VerticalAlignment="Center" Click="Annuler_Click" IsCancel="True" />

        </Grid>
        <Image Height="315" HorizontalAlignment="Left" Stretch="Fill" VerticalAlignment="Top" Width="603" Source="/InterfaceHommeMachine;component/Images/insation.png" />
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="LightSalmon" Offset="0.13" />

            </LinearGradientBrush>
        </Grid.Background>
    </Grid>
    <Window.Background>
        <ImageBrush Stretch="Fill" TileMode="None" />
    </Window.Background>
</Window>
